/* Copyright 2009 Requirements Management System 
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.mags.remas.model.entity;

// Generated Dec 16, 2009 10:43:06 PM by Hibernate Tools 3.2.2.GA

import java.util.Date;

/**
 * EntityRelationship generated by hbm2java
 */
public class EntityRelationship implements java.io.Serializable {
	private static final long serialVersionUID = 1L;

	private String hierarchicalPath;
	private long version;
	private String createdBy;
	private String updatedBy;
	private Date creationDate;
	private Date changeDate;
	private Integer position;
	private Entity entity;
	private Entity entityParent;
	private EntityType entityType;
	private EntityType entityTypeParent;
	private long entityRelationshipId;
	private Long relationshipLinkId;
	private EntityType linkEntityType;
	private EntityType linkEntityTypeParent;
	private EntityRelationship link;
	
	/**
	 * dummy field
	 */
	private EntityRelationship parent;
	
	public EntityRelationship getLink() {
		return link;
	}
	public void setLink(EntityRelationship link) {
		this.link = link;
	}
	public EntityType getLinkEntityType() {
		return linkEntityType;
	}
	public void setLinkEntityType(EntityType linkEntityType) {
		this.linkEntityType = linkEntityType;
	}
	public EntityType getLinkEntityTypeParent() {
		return linkEntityTypeParent;
	}
	public void setLinkEntityTypeParent(EntityType linkEntityTypeParent) {
		this.linkEntityTypeParent = linkEntityTypeParent;
	}
	public Long getRelationshipLinkId() {
		return relationshipLinkId;
	}
	public void setRelationshipLinkId(Long relationshipLinkId) {
		this.relationshipLinkId = relationshipLinkId;
	}
	/**
	 * dummy field
	 * @return
	 * temporal field, is not persitent
	 */
	public EntityRelationship getParent() {
		return parent;
	}
	/**
	 * dummy field
	 * @param parent
	 * temporal value
	 */
	public void setParent(EntityRelationship parent) {
		this.parent = parent;
	}

	public long getEntityRelationshipId() {
		return entityRelationshipId;
	}

	public void setEntityRelationshipId(long entityRelationshipId) {
		this.entityRelationshipId = entityRelationshipId;
	}

	public Entity getEntity() {
		return entity;
	}

	public void setEntity(Entity entity) {
		this.entity = entity;
	}

	public Entity getEntityParent() {
		return entityParent;
	}

	public void setEntityParent(Entity entityParent) {
		this.entityParent = entityParent;
	}

	public EntityType getEntityType() {
		return entityType;
	}

	public void setEntityType(EntityType entityType) {
		this.entityType = entityType;
	}

	public EntityType getEntityTypeParent() {
		return entityTypeParent;
	}

	public void setEntityTypeParent(EntityType entityTypeParent) {
		this.entityTypeParent = entityTypeParent;
	}

	public EntityRelationship() {
	}

	public String getHierarchicalPath() {
		return this.hierarchicalPath;
	}

	public void setHierarchicalPath(String hierarchicalPath) {
		this.hierarchicalPath = hierarchicalPath;
	}

	public long getVersion() {
		return this.version;
	}

	public void setVersion(long version) {
		this.version = version;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public Date getCreationDate() {
		return this.creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	public Date getChangeDate() {
		return this.changeDate;
	}

	public void setChangeDate(Date changeDate) {
		this.changeDate = changeDate;
	}

	public Integer getPosition() {
		return this.position;
	}

	public void setPosition(Integer position) {
		this.position = position;
	}

}


